<script src="./Public/Js/MyDate/WdatePicker.js" type="text/javascript"></script>
<script type="text/javascript" src="__PUBLIC__/Js/jquery.artDialog.js?skin=default"></script>
<if condition="empty($_GET[parenthost])"><load href="__PUBLIC__/Js/iframeTools.js"/></if>
<load href="__PUBLIC__/Js/my.js"/>
<load href="__PUBLIC__/Js/swfupload.js"/>
<script>
    function fillZero(v){
        if(v<10){
            v='0'+v;
        }
        return v;
    }
    function testing()
    {
        var d;
        d =new Date();
        Y = d.getFullYear();
        M = fillZero(d.getMonth()+1);
        D = fillZero(d.getDate());
        H = fillZero(d.getHours());
        I = fillZero(d.getMinutes());
        S = fillZero(d.getSeconds());
        var showData = Y+'-'+M+'-'+D+' '+H+':'+I+':'+S;
        $('#createtime').val(showData);
        setTimeout("testing()",3600);
    }
    window.onload=function(){
		
		
        testing();	
		
		
    }
</script>
<div class="right">

    <h5 class="title"><b>{:L(USER_POST_ONLINE)}</b></h5>

    <form name="myform" id="myform" action="{:URL('User-Post/insert')}" method="post">
        <div id="filelist" class="hide"></div>
        <div class="error"><ul></ul></div>
        <table cellpadding=0 cellspacing=0 class="table_form" width="100%">
            <tr>
            <input type="hidden"  name="moduleid" value="2" />
            <td width="15%" ><font color="red">*</font>栏目</td>
            <td width="85%" id="box_catid">
                <select  id="catid" name="catid" class=" "  validate=" minlength:1, maxlength:6, required:true, digits:true"  title="必须选择一个栏目">
                    <option value="">请选择</option>
                    <volist id="cat" name="cat">
                        <option value='{$cat.id}'  >{$cat.catname}</option>
                    </volist>

                </select>            
            </td>
        </tr><tr>
        <td width="15%" ><font color="red">*</font>标题</td>
        <td width="85%" id="box_title">
            <div class="thumb_box"  id="thumb_box"><div id="thumb_aid_box"></div>
                <a href="javascript:swfupload('thumb_uploadfile','thumb','{:L(uploadfiles)}',0,1,0,1,'jpeg,jpg,png,gif',3,0,'{$joyeasy_auth}',yesdo,nodo)">
                    <img src="/Public/Images/admin_upload_thumb.png" id="thumb_pic" ></a><br> 
                    <input type="button" value="清除图片" onclick="javascript:clean_thumb('thumb');" class="button" />
                <input type="hidden"  id="thumb" name="thumb"  value="" /></div><input type="text"   class="input-text input-title f_l" name="title"  id="title" value="" size="55"  validate=" required:true"  title="标题必须为1-80个字符"  /> <div id="title_colorimg" class="colorimg" style="background-color:"><img src="/Public/Images/admin_color_arrow.gif"></div><input type="hidden" id="title_style_color" name="style_color" value="" /><input type="checkbox" class="style_bold" id="style_bold" name="style_bold" value="bold"  /><b>加粗</b><script>$.showcolor("title_colorimg","title_style_color");</script>            </td>
    </tr><tr>
        <td width="15%" >关键词</td>
        <td width="85%" id="box_keywords">
            <input type="text"   class="input-text " name="keywords"  id="keywords" value="" size="55"  />             </td>
    </tr><tr>
        <td width="15%" >SEO简介</td>
        <td width="85%" id="box_description">
            <textarea  class="" name="description"  rows="4" cols="55"  id="description"   /></textarea>            </td>
    </tr><tr>
        <td width="15%" >内容</td>
        <td width="85%" id="box_content">
            <div class="editor_box">
                <div style="display:none;" id="content_aid_box">                
                </div>
                <textarea name="content" class=""  id="content"  boxid="content"  ></textarea>
                <script type="text/javascript" src="/Public/Xheditor/xheditor-zh-cn.min.js"></script>
                <script type="text/javascript"> 
                    var editor_content=$('#content').xheditor({ plugins:plugins,tools:'full',
                        loadCSS:'<style>pre{margin:12px;background:#EFEFEF;border:1px solid #ddd;border-left:3px solid #6CE26C;padding:10px;padding-top: 1px;}</style>',
                        shortcuts:{'ctrl+enter':submitForm},width:"100%",height:"300",
                        upLinkUrl:"!/index.php?g=Admin&m=Attachment&a=index&isadmin=1&more=1&isthumb=0&file_limit=20&file_types=jpg,jpeg,gif,png,doc,docx,rar,zip,swf&file_size=5&moduleid=2&auth=6ad8Yr/5wgJ83xwrMeHrPPrKJJ+8diUCuSBJotlcKkFdAfCvQNtwA3/+PXlIJrrVOwjhj9PeSmqznkrqBiiWg75TxZ3eEJX3Qlj32NsyKw&editorid=content&immediate=1&l=cn",
                        upImgUrl:"!/index.php?g=Admin&m=Attachment&a=index&isadmin=1&more=1&isthumb=0&file_limit=20&file_types=jpg,gif,png&file_size=5&moduleid=2&auth=eff2u78ulIwC2JrD1GzYP86+8maT6cMbB6GS7+paiJ8sBK3TcFco7shn3oz63nQtz/QCG6s&editorid=content&immediate=1&l=cn",
                        upFlashUrl:"!/index.php?g=Admin&m=Attachment&a=index&isadmin=1&more=1&isthumb=0&file_limit=20&file_types=swf&file_size=5&moduleid=2&auth=a9924j2jxSvlaXUevUsuOExTaZlkNQ6TqptwyX0T12/BwAUbKwn7rtvqE9Mt&editorid=content&immediate=1&l=cn",upMediaUrl:"!/index.php?g=Admin&m=Attachment&a=index&isadmin=1&more=1&isthumb=0&file_limit=20&file_types=mpg,wmv,avi,wma,mp3,mid,asf,rm&file_size=5&moduleid=2&auth=70c5lG1P0qwoLaHZn1phAGS0l+pSSBEJVLrt5cLOp3R8PAM9yP5VfrZi9E6f9A9LEVl8oMBu7bkRBp2U1ltyadTwKyZtaq9f&editorid=content&immediate=1&l=cn",
                        onUpload:upokis,modalWidth:"600",modalHeight:"455"});
                </script>
                <div class='editor_bottom1'>
                    <a href="javascript:void(0);"  onclick="editor_content.pasteText('[page]');return false;">[插入分页符]</a>
                    <input type="checkbox" class="input_radio" name="add_description" value="1" checked /> 是否截取内容 
                    <input type="text"  name="description_length" value="200" style="width:24px;" size="3" />字符至内容摘要
                    <input type="checkbox" class="input_radio" name="auto_thumb" value="1" checked /> 是否获取内容第
                    <input   type="text" name="auto_thumb_no" value="1" size="1" />张图片作为标题图片</div>
            </div>
        </td>
    </tr><tr>
        <td width="15%" ><font color="red">*</font>发布时间</td>
        <td width="85%" id="box_createtime">
            <input  class="Wdate input-text  "  validate=" required:true"   name="createtime" type="text" id="createtime" size="25" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'
            })" value="" />            </td>
    </tr><tr>
        <td width="15%" >来源</td>
        <td width="85%" id="box_copyfrom">
            <input type="text"   class="input-text " name="copyfrom"  id="copyfrom" value="" size="20"  />             </td>
    </tr><tr>
        <td width="15%" >来源网址</td>
        <td width="85%" id="box_fromlink">
            <input type="text"   class="input-text " name="fromlink"  id="fromlink" value="" size="20"  />             </td>
    </tr>

    <input type="hidden" class="input_radio " name="status" id="status_1" checked value="0" >
    <tr>
        <td width="15%" >允许评论</td>
        <td width="85%" id="box_recommend">
            <input type="radio" class="input_radio " name="recommend" id="recommend_1" checked value="1" validate=" maxlength:1" > 允许评论<input type="radio" class="input_radio " name="recommend" id="recommend_2"  value="0" > 不允许评论            </td>
    </tr></table>
<div id="bootline"></div>
<div id="btnbox" class="btn">
    <input type="hidden"  name="lang" value="1" />
    <input type="hidden" name="forward" value="http://www.zhixun.com/index.php?a=index&m=Article&g=Admin&menuid=20" />
    <INPUT TYPE="submit"  value="提交" class="button" >
    <input TYPE="reset"  value="取消" class="button">
</div>
<input type="hidden" name="__hash__" value="d5c92236e843011c4dc54a781e800045_0ca322f602b2c6d091d6ff74469ff994" /></form>

</div>
